/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartElectricKettle {
    static categoryCode = '010050047';

    static categoryName = '智能电茶壶';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return SmartElectricKettle.categoryCode;
    }

    get categoryName() {
        return SmartElectricKettle.categoryName;
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'pkpDAEPR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'phEqYR9q',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'pDrhgJjx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'ptRSxWok',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetTemperature(params) {
        return command({
            method: 'getTargetTemperature',
            methodId: 'pgh0uoab',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'pdN7VzG1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkTime(params) {
        return command({
            method: 'getWorkTime',
            methodId: 'p3deZIdo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'pZgRrveV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStart(params) {
        return command({
            method: 'setStart',
            methodId: 'ppAX3iSL',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setStop(params) {
        return command({
            method: 'setStop',
            methodId: 'peH3bdqZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pGoxpND3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetTemperature(params) {
        return command({
            method: 'setTargetTemperature',
            methodId: 'pUPQLHCS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWorkTime(params) {
        return command({
            method: 'setWorkTime',
            methodId: 'p1vZQTTG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartElectricKettle;
